package testcases;

import com.thoughtworks.selenium.HttpCommandProcessor;
import com.unitedinternet.portal.selenium.utils.logging.LoggingDefaultSelenium;

import framework.HelperFunctions;

public class testclass {

	LoggingDefaultSelenium selenium;

	public void setUp() {
		selenium = new LoggingDefaultSelenium(new HttpCommandProcessor(
				"localhost", 4444, "*firefox",
				"http://ebuying-test.direction.biz/"));
		selenium.start();
	}

	public void runTests() throws Exception {
		// Resultdata.getResultMap();
		// HelperFunctions.waitForElement(selenium, GuiMap.login_txtpassword);
		// ConnectDatabase.connectToDB();
		selenium.open("/");
		selenium.windowFocus();
		selenium.windowMaximize();
		HelperFunctions.waitForElement(selenium, GuiMap.login_txtpassword);
		HelperFunctions.getdata();
		int i = 0;
		// Perform Smoke Test
		if (i == 0) {
			LoginProcess.validLogin(selenium);
			// ManageStyle.manageStyleOverview(selenium);
		} else {// Perform All Tests
			LoginProcess.validLogin(selenium);
			// LoginProcess.invalidLogin(selenium);
			// LoginProcess.emptyUsernamePassword(selenium);
		}
		// xmloutput.generateOutput();
		// MailFeature.mailsend();
	}

	public void tearDown() {
	}

}
